import 'package:flutter/material.dart';
import 'package:flutter_easyloading/flutter_easyloading.dart';
import 'package:happy_around_us/Agore/AgoreIM/AgoreIMPage.dart';
import 'package:happy_around_us/EasyLoading/EasyLoadingConfig.dart';
import 'package:happy_around_us/ListConfig/ListPage.dart';
import 'ListConfig/ListData.dart';

void main() {
  configEasyLoading();

  WidgetsFlutterBinding.ensureInitialized();

  AgoreIMConfig();

  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: ListPage('主列表', MainList),
      builder: EasyLoading.init(),
    );
  }
}